package com.aaa.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
@Data
@TableName("user")
public class User {
@TableId(value = "uid",type = IdType.AUTO)
  private Integer uid;
  private String phone;
  private String username;
  private String password;
  private String realname;
  private String sex;
  private Integer age;
  private String photo;
    @JsonFormat(  pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
  private Date birth;
  private String card;
    @JsonFormat(  pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
  private Date createtime;
  private String remark;
  private String mailbox;
}
